﻿using System.Reactive;
using ReactiveUI;

namespace MilkTeaMachine.OfflineClient.ViewModels;

public class BootViewModel : ViewModelBase, IScreen
{
    public BootViewModel()
    {
        GoMainPage = ReactiveCommand.CreateFromObservable(
            () => Router.Navigate.Execute(new MainPageViewModel(this)));
    }

    public RoutingState Router { get; } = new();
    public ReactiveCommand<Unit, IRoutableViewModel> GoMainPage { get; }
}